package org.achartengine.internal.a;

import org.achartengine.internal.chart.k;
import org.achartengine.internal.renderer.XYMultipleSeriesRenderer;

/* loaded from: classes2.dex */
public abstract class a {
    protected k a;
    protected XYMultipleSeriesRenderer b;

    public a(k kVar) {
        this.a = kVar;
        this.b = kVar.e();
    }

    public double[] a() {
        return new double[]{this.b.C(), this.b.E(), this.b.G(), this.b.I()};
    }

    public void a(double[] dArr) {
        double[] g = this.a.g();
        if (!this.b.D()) {
            dArr[0] = g[0];
            this.b.a(dArr[0]);
        }
        if (!this.b.F()) {
            dArr[1] = g[1];
            this.b.b(dArr[1]);
        }
        if (!this.b.H()) {
            dArr[2] = g[2];
            this.b.c(dArr[2]);
        }
        if (this.b.J()) {
            return;
        }
        dArr[3] = g[3];
        this.b.d(dArr[3]);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public void a(double d, double d2) {
        this.b.a(d);
        this.b.b(d2);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public void b(double d, double d2) {
        this.b.c(d);
        this.b.d(d2);
    }
}
